package com.example.iot.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.iot.entity.ArchivesPatchUpgrade;
import com.example.iot.entity.DeviceArchives;
import com.example.iot.service.DeviceArchivesService;
import com.example.iot.mapper.DeviceArchivesMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 18364
* @description 针对表【device_archives】的数据库操作Service实现
* @createDate 2023-09-25 14:23:48
*/
@Service
public class DeviceArchivesServiceImpl extends ServiceImpl<DeviceArchivesMapper, DeviceArchives>
    implements DeviceArchivesService{
    @Autowired
    DeviceArchivesMapper deviceArchivesMapper;

    @Override
    public List<ArchivesPatchUpgrade> selectAll() {
        List<ArchivesPatchUpgrade> list=deviceArchivesMapper.selectAll();
        return list;
    }

    @Override
    public DeviceArchives deviceVerify(String deviceId,String password) {
        DeviceArchives deviceArchives=deviceArchivesMapper.deviceVerify(deviceId,password);
        return deviceArchives;
    }

    @Override
    public DeviceArchives selectByDevId(String deviceId) {
        DeviceArchives deviceArchives=deviceArchivesMapper.selectByDevId(deviceId);
        return deviceArchives;
    }


}




